<?php
require('includes/top.php');
$requestType = $_POST['request_type'];
$employeeType = $_POST['employee_type'];


if(!isset($_SESSION['user_name']))
{
header('Location: index.php');
}


if($requestType==1 && $employeeType==1)
{
header('Location:request_laptop_main.php?action=ind_new');
}
elseif($requestType==1 && $employeeType==2)
{
header('Location:request_laptop_main.php?action=ind_old');
}
elseif($requestType==2 && $employeeType==1)
{
header('Location:request_laptop_main.php?action=grp_new');
}
elseif($requestType==2 && $employeeType==2)
{
header('Location:request_laptop_main.php?action=grp_old');
}
else
{
header('Location:request_laptop_main.php');
}
?>
